<?php


namespace App\Utils\Service\Syj;


use App\Utils\Lib\Syj\WeChat;

class Login
{
    private const weChat = "weChat";
    private const QQ = "QQ";

    function ApiLogin(string $data){
        if(!$data ==  self::weChat && !$data == self::QQ) return false;
        //微信登录
        if($data == self::weChat) return new WeChat();
        //QQ登录
        //if($data == self::QQ) return new QQ();
        return false;
    }
}
